package sjd.ahsj.springbootmybatisplusoracle.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import sjd.ahsj.springbootmybatisplusoracle.entity.SuperEntity;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员
 * </p>
 *
 * @author zhanghaogao
 * @since 2018-09-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_user")
@SuppressWarnings("serial")
@AllArgsConstructor
@NoArgsConstructor
public class BaseUser extends SuperEntity<BaseUser> {


    /**
     * 是否删除 0：有效，1：删除
     */
    @JSONField(serialize = false)
    @TableLogic
    @JsonIgnore
    private Integer state = 0;
    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    @TableField("login_name")
    private String loginName;
    /**
     * 密码
     */
    @JsonIgnore
    private String password;
    /**
     * 金币数量
     */
    @ApiModelProperty("金币数量")
    private Long gold;
    /**
     * 会员结束时间
     */
    @ApiModelProperty("会员结束时间")
    @TableField("member_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date memberEndTime;


}
